package com.ktjy.goods.controller;


import com.ktjy.common.core.controller.BaseController;
import com.ktjy.common.core.page.TableDataInfo;
import com.ktjy.goods.domain.TAttr;
import com.ktjy.goods.domain.TBrand;
import com.ktjy.goods.service.ITBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2025-03-15
 */
@RestController
@RequestMapping("/goods/brand")
public class TBrandController extends BaseController {

    @Autowired
    private ITBrandService itBrandService;

    @PreAuthorize("@ss.hasPermi('goods:brand:all')")
    @GetMapping("/all")
    public TableDataInfo list()
    {
        System.out.println("goodsBrandAll()--------------------");
        List<TBrand> list = itBrandService.selectBrandAll();
        return getDataTable(list);
    }
}
